Skip to content

Conversation

@grapeot
Copy link
Owner

@grapeot grapeot commented Jan 21, 2025

This PR adds comprehensive token tracking and cost estimation functionality to the project.

Key changes:

  • Add TokenTracker module for tracking API token usage and costs
  • Implement per-day session management for usage tracking
  • Add support for OpenAI and Claude cost calculations
  • Update LLM API modules to track token usage
  • Fix and enhance unit tests across all modules
  • Add aiohttp for web scraping

The token tracking system provides:

  • Token usage tracking for all LLM API calls
  • Cost estimation based on provider-specific pricing
  • Daily session management for usage statistics
  • Command-line interface for viewing usage summaries

Key changes:
- Add TokenTracker module for tracking API token usage and costs
- Implement per-day session management for usage tracking
- Add support for OpenAI and Claude cost calculations
- Update LLM API modules to track token usage
- Fix and enhance unit tests across all modules
- Add aiohttp for web scraping

The token tracking system provides:
- Token usage tracking for all LLM API calls
- Cost estimation based on provider-specific pricing
- Daily session management for usage statistics
- Command-line interface for viewing usage summaries
@grapeot grapeot merged commit e709428 into multi-agent Jan 21, 2025
1 check passed
@grapeot grapeot deleted the fix-unit-tests branch January 21, 2025 00:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants